<tagLib name='html'/>
<div class='pageHeader'>
    <form action='__URL__' method='post' id='pagerForm' onsubmit='return navTabSearch(this);'>
        <div class='searchBar'>
            <ul>
                <li><label>角色名</label> <input type='text' name='role_name' value='{$str_role_name}' /></li>
                <li><label>地址</label> <input type='text' name='url' value='{$str_url}' /></li>
                <li><label>组</label> <input type='text' name='group_name' value='{$str_group_name}' /></li>
                <li><label>模块</label> <input type='text' name='module_name' value='{$str_module_name}' /></li>
                <li><label>菜单</label> <input type='text' name='menu_name' value='{$str_menu_name}' /></li>
                <li><label>动作</label> <input type='text' name='action_name' value='{$str_action_name}' /></li>
                <li><label>级别</label> <html:select values='arr_level' output='arr_level' selected='int_level' first='{$str_select_first_txt}' name='level' style='combox' /></li>
                <li><label>状态</label> <html:select options='arr_status' selected='int_status' first='{$str_select_first_txt}' name='status' style='combox' /></li>
            </ul>
            
            <include file='$str_search_bar_html' />
        </div>
        
        <include file='$str_page_search_html' />
    </form>
</div>

<div class='pageContent'>
    <div class='panelBar'>
        <ul class='toolBar'>
            <li><a href='__URL__/add' target='dialog' width='650' height='400' class='add'><span>添加</span></a></li>
            <li><a href='__URL__/edit?id={id}' target='dialog' width='650' height='450' class='edit'><span>修改</span></a></li>
            <li class='line'>line</li>
        </ul>
    </div>
    <table class='table' width='100%' layoutH='138'>
        <thead>
            <tr>
                <th width='80'>ID</th>
                <th width='100'>角色ID</th>
                <th width='100'>组</th>
                <th width='100'>模块</th>
                <th width='120'>菜单</th>
                <th width='100'>动作</th>
                <th width='150'>角色名</th>
                <th width='100'>地址</th>
                <th width='50'>级别</th>
                <th width='100'>备注</th>
                <th width='50'>操作者</th>
                <th width='50'>状态</th>
                <th width='100'>创建时间</th>
                <th width='100'>更新时间</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='arr_info' item='sub'>
                <tr target='id' rel='{$sub.id}'>
                    <td>{$sub.id}</td>
                    <td>{$sub.role_id}</td>
                    <td>{$sub.group_name}</td>
                    <td>{$sub.module_name}</td>
                    <td title='{$sub.menu_name}' class='list_long_text'>{$sub.menu_name}</td>
                    <td>{$sub.action_name}</td>
                    <td>{$sub.role_name}</td>
                    <td title='{$sub.url}' class='list_long_text'>{$sub.url}</td>
                    <td>{$sub.level}</td>
                    <td title='{$sub.remark}' class='list_long_text'>{$sub.remark}</td>
                    <td>{$sub.user_id|get_user_name}</td>
                    <td>{$sub.status|get_status_txt}</td>
                    <td>{$sub.create_time|get_date}</td>
                    <td>{$sub.update_time|get_date}</td>
                </tr>
            </foreach>
        </tbody>
    </table>

    <include file='$str_page_html' />
</div>
